package com.adu.miniospringbootstarter.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
// 实现属性绑定
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {

    // endPoint是一个URL，域名，IPv4或者IPv6地址
    private String endpoint;
    // TCP/IP端口号。可选，默认值是，如果是http,则默认80端口，如果是https,则默认是443端口
    private int port=9000;
    // accessKey类似于用户ID，用于唯一标识你的账户
    private String accessKey;
    // secretKey是你账户的密码
    private String secretKey;
    // 储存桶名称
    private String bucketName;
    // 	如果是true，则用的是https而不是http,默认值是true
    private boolean secure=false;
    // 文件下载时存储位置
    private String filePath;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public boolean isSecure() {
        return secure;
    }

    public void setSecure(boolean secure) {
        this.secure = secure;
    }


}
